package com.example.hjt_java_web_homework2.domain.repository;

import com.example.hjt_java_web_homework2.domain.model.EnvironmentData;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Li Chun Hei
 * @date 31/10/2025
 * @description
 */

@Repository
public interface EnvironmentDataRepository {
    EnvironmentData save(EnvironmentData environmentData);
    List<EnvironmentData> findByLocation(String location);
    List<EnvironmentData> findByRecordedAtBetween(LocalDateTime start, LocalDateTime end);
    List<EnvironmentData> findAll();
}
